package com.service;

import com.dao.TopsDao;
import com.entity.Tops;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TopService {

    @Autowired
    private TopsDao topsDao;


    public Tops getByGoodIdAndType(int goodId, byte type){
        return topsDao.selectByGoodIdAndType(goodId,type);
    }
}
